package dome3;

public class OutClass {
    private int a = 1;
    static int b = 2;

    static class InnerClass {
        //要想访问外部类属性，要先创建外部类对象
        OutClass out = new OutClass();
        public int c = 3;
        public void test() {
            System.out.println(out.a);
            System.out.println(b);
            System.out.println(c);
        }
    }
}